Instructions for Replication Packet
Paper: Political Conformity: Event-Study Evidence from the United States
By: Ricardo Perez-Truglia, University of California, Los Angeles

The replication packet consists of the following files:

- ready-to-use-data.dta: This is the final Stata dataset, ready to be analyzed. 

- Code analyzing the ready-to-use-data.do: This is the Stata code that uses the ready-to-use-data.dta to produce the tables and figures reported in the paper.

- Pantob Stata Ado Files.zip: contains all the Stata ado file to implement the estimator from the following paper, downloaded from Bo Honore's website: Honore, Bo E. (1992): "Trimmed Lad and Least Squares Estimation of Truncated and Censored Regression Models with Fixed Effects" Econometrica, Vol. 60, No. 3, pp. 533-565.

- Code preparing the ready-to-use-data: Some of the intermediate data used to generate the final dataset (ready-to-use-data.dta) is propietary (e.g., NCOA), and thus cannot be made publicly available. Thus, I upload here the code that generates that creates and merges all the intermediate datasets, for the record. If you need instructions on how to obtain one of the intermediate datasets, please email me to ricardo.truglia@anderson.ucla.edu.

- Matlab Files: matlab files used for the counterfactual analysis

The following is a dictionary for the main variables from ready-to-use-data.dta:

amount_poisson: amount contributed in excess of $200
some: dummy indicating if the individual contributed over $200 or not.
zip3_share_ind_own: share of Democratic contributors in the destination ZIP-3 among all contributors (Democrats and Republicans).
adj_zip3_share_ind_own: idem to zip3_share_ind_own, but in the adjacent ZIP-3s rather than in the same ZIP-3.
after: dummy variable that takes the value 1 if the individual moved after the end of the 2012 cycle.
dummies: denote groups of individuals who contributed an amount to the 2008 Obama campaign in the same $100-interval while living in a ZIP-3 in the same 0.01-interval of Share Democrat.
N_dummies: number of individuals in the corresponding dummies group.
cycle: 1 if 2008 election cycle, 2 if 2012 election cycle.
f_X: interaction X*after
t_X: interaction X*(1-after)
L_X: value of variable X during the 2008 election cycle
$ind_controls: individual-level controls (e.g., gender, race)
$true_zip3_controls: zip-3 level controls, for individuals who moved before the beginning of the 2012 cycle.
$fake_zip3_controls: zip-3 level controls, for individuals who moved after the end of the 2012 cycle.
timemoved: denotes the months elapsed between Dec-31-2008 and the date when the individual last moved.
same_state: destination state equal the origin state.